package com.lanou.quanttradedata.stock.job;

import com.lanou.quanttradedata.stock.service.StockService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

@Component
public class BiasCalculateToHDFSJob extends QuartzJobBean {
    @Autowired
    private StockService stockService;
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("6日短线乖离率计算到HDFS上开始....");
        stockService.biasCalculateToHDFS();
        System.out.println("6日短线乖离率计算到HDFS上结束....");
    }
}
